package design_patterns.tx;

public class SXA implements  Runnable{
    @Override
    public void run() {
         synchronized (SXA.class){
             System.out.println("A在获取锁");
             synchronized (SXB.class){
                 System.out.println("B在获取锁");
             }
         }
    }
}
